import request from '@/util/request'

export const addressList = () => {
    return request({
        url: `/address_list`,
        method:'get'
    })
}

export const addressInfo = (id) => {
    return request({
        url: `/addressInfo?address_id=${id}`,
        method: 'get'
    })
}

export const addressEdit = (data) => {
    return request({
        url: '/addressEdit',
        method:'post',
        data:data
    })
}

export const addressAdd = (data) => {
    return request({
        url: '/addressAdd',
        method:'post',
        data:data
    })
}